class DatabaseConfig:
    # 直接硬编码配置（适合开发环境）
    USER = "root"
    PASSWORD = "lyj595000#"
    HOST = "localhost"
    PORT = "3306"
    NAME = "personal_schedule_db"

    @classmethod
    def get_mysql_uri(cls):
        return (
            f"mysql+pymysql://{cls.USER}:{cls.PASSWORD}@"
            f"{cls.HOST}:{cls.PORT}/{cls.NAME}?"
            "charset=utf8mb4"
        )

    @staticmethod
    def get_test_mysql_uri():
        return "mysql+pymysql://root:lyj595000%23@localhost:3306/personal_schedule_test_db?charset=utf8mb4"